Skip to content

Treat leading "." as unrooted in isRooted/splitRoot - #3220

Merged
harendra-kumar merged 7 commits into
masterfrom
path-improvements-2
May 18, 2026
Merged

harendra-kumar merged 7 commits into
masterfrom
path-improvements-2

Conversation

@harendra-kumar

Copy link
Copy Markdown
Member

No description provided.

A leading "." component (e.g. "." or "./x") is no longer classified as a
rooted path.
Add doctests and unit tests illustrating the default eqPath laws around a
leading "./" being a redundant "." segment:

"C:" is conceptually a directory (the current directory in drive C:) but
cannot carry a trailing separator: "C:\\" is the absolute drive root, not
the current directory. Document this in the WindowsPath isRooted doc and
the FileSystem.Path design doc, and use "C:." rather than "C:./" in the
new equality law.
@harendra-kumar
harendra-kumar merged commit 80b1084 into master May 18, 2026
15 of 16 checks passed
@harendra-kumar
harendra-kumar deleted the path-improvements-2 branch October 7, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant